package com.corecloud.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.corecloud.entity.SysLogEntity;
import com.corecloud.mapper.mysql.SysLogMapper;
import com.corecloud.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;





@Service("sysLogService")
public class SysLogServiceImpl implements SysLogService {

    @Autowired
    private SysLogMapper sysLogMapper;


    @Override
    public SysLogEntity selectOne(QueryWrapper<SysLogEntity> paras) {
        return sysLogMapper.selectOne(paras);
    }

    @Override
    public List<SysLogEntity> selectList(QueryWrapper<SysLogEntity> qw) {
        return sysLogMapper.selectList(qw);
    }

    @Override
    public List<Map<String, Object>> selectMap(QueryWrapper<SysLogEntity> qw) {
        return sysLogMapper.selectMaps(qw);
    }

    @Override
    public Page<SysLogEntity> getInfoByPage(Page page, QueryWrapper<SysLogEntity> qw) {
        return sysLogMapper.selectPage(page,qw);
    }

    @Override
    public void updateInfo(SysLogEntity info) {
        sysLogMapper.updateById(info);
    }

    @Override
    public void deleteInfo(Integer id) {
        sysLogMapper.deleteById(id);
    }

    @Override
    public Integer insertInfo(SysLogEntity info) {
        return sysLogMapper.insert(info);
    }






}